package com.example.springboot_demo.order;

import com.example.springboot_demo.SpringbootDemoApplication;
import org.apache.catalina.core.ApplicationContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.web.context.WebApplicationContext;

/**
 * @BelongsProject: springboot_demo
 * @BelongsPackage: com.example.springboot_demo.order
 * @Author: 江岸
 * @CreateTime: 2021-06-06 23:32
 * @Description:
 */
public abstract class AbstractSate {

    protected static OrderService service = new OrderService();

    protected Context context;//当前上下文环境
    protected String name;
    public abstract void fun();
    public String getName(){
        return context.getOrder().getStatus();
    }
}
